package com.borrowed.book.book.service;

import com.borrowed.book.book.Exception.UnderStockException;
import com.borrowed.book.book.domain.SBorrowOrder;
import com.borrowed.book.book.domain.SelectBorrowOrderInDto;
import com.borrowed.book.book.domain.SelectBorrowOrderOutDto;
import com.borrowed.book.system.domain.AjaxResult;

import java.util.List;

public interface BorrowOrderService {
    /**
     * 添加想借订单
     * @param bookId
     */
    void AddBorrowOrderService(Long bookId) throws UnderStockException, Exception;
    /**
     * 代借移至收藏书单
     */
    void collectBorrowOrder(Long id);
    /**
     * 借阅订单一览查询
     */
    List<SelectBorrowOrderOutDto> selectBorrowOrderList(SelectBorrowOrderInDto param);
    /**
     * 删除想借书单
     */
    void deleteBorrowOrderById(Long bookId) throws Exception;
    /**
     * 批量删除
     */
    void deleteBorrowOrderByIds(List<Long> bookIds) throws Exception;
}
